package com.example.intentservicedemo;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.util.Log;

/**
 * Created by mhysa on 2017/3/10.
 */

public class MyService extends Service {
    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        Log.i("mhysa","调用Onbind方法");
        return null;
    }

    @Override
    public void onCreate() {
        Log.i("mhysa","调用OnCreate方法");
        super.onCreate();
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.i("mhysa","调用OnStartCommand方法");
        return super.onStartCommand(intent, flags, startId);
    }

    @Override
    public void onStart(Intent intent, int startId) {
        Log.i("mhysa","调用OnStart方法");
        super.onStart(intent, startId);
    }

    @Override
    public void onDestroy() {
        Log.i("mhysa","调用OnDestroy方法");
        super.onDestroy();
    }

    @Override
    public boolean onUnbind(Intent intent) {
        Log.i("mhysa","调用OnUnbind方法");
        return super.onUnbind(intent);
    }
}
